package cn.wolfcode.wolf2w.controller;

import cn.wolfcode.wolf2w.util.JsonResult;
import cn.wolfcode.wolf2w.util.UploadUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
public class UploadController {
    @PostMapping("/uploadImg")
    public Object uploadImg(MultipartFile pic) throws Exception {
        return UploadUtil.uploadAli(pic);
    }
}
